From 1e4a834a8f5d970e68cff6d9c16710194bc46537 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Apr 2018 19:09:16 +0100 Subject: [PATCH] docs/gen-html-index: Support documents at the toplevel There are none yet. Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: Lars Kurth --- docs/gen-html-index | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/gen-html-index b/docs/gen-html-index index 5b43b42a8c..8258e2bf22 100644 --- a/docs/gen-html-index +++ b/docs/gen-html-index @@ -137,6 +137,10 @@ sub dirs($) return @dirs; } +foreach my $of (grep { !m{/} } @docs) { + $top .= make_link($of,''); +} + foreach my $od (sort { $a cmp $b } uniq map { dirs($_) } @docs) { my @d = (grep /^\Q$od\E/, @docs); if ( @d == 1 and $d[0] eq "$od/index.html" ) -- 2.30.2